package core

class LegalIdentifier {

	String idValue
	//String nameVale
	Country issuingCountry
	DocumentType documentType
	Date validFrom
	Date validTo
	
	static belongsTo = [person:Person]
    static constraints = {
		validFrom nullable:true
		validTo nullable:true
		idValue blank:false 
    }
	
//	int compareTo(obj) {
//		validFrom.compareTo(obj.validFrom)
//	}
		
}